package com.wss.day04.test02;

import java.io.Serializable;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/22
 */
public class Employee extends Person implements Add {
    protected String ID;
    protected double wage;
    protected int workAge;

    public Employee(String name, String address, String ID, double wage, int workAge) {
        super(name, address);
        this.ID = ID;
        this.wage = wage;
        this.workAge = workAge;
    }

    @Override
    public void addSalary() {
        this.wage *= 1.10;
    }

    @Override
    public String toString() {
        return super.toString() +
                ", 工号: " + ID +
                ", 工资: " + wage +
                ", 工龄: " + workAge + "年";
    }

}
